﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using EasyClassUI.entity;

namespace EasyClassUI.forms.group
{
    public partial class BlogInShort : UserControl
    {
        private Post post;
        public BlogInShort(string title, string content, string time, Post post)
        {
            InitializeComponent();
            blogTitleLabel.Text = title;
            blogContentLabel.Text = content;
            blogTimeLabel.Text = time;
            this.post = post;
        }

        private void BlogInShort_Click(object sender, EventArgs e)
        {
            blogDetailShow bds = new blogDetailShow(post);
            bds.Show();
        }

        private void blogTitleLabel_Click(object sender, EventArgs e)
        {
            blogDetailShow bds = new blogDetailShow(post);
            bds.Show();
        }
    }
}
